package com.bj58.disconf.web.common.context;

import org.springframework.context.MessageSourceResolvable;
import org.springframework.context.NoSuchMessageException;

import com.bj58.disconf.web.common.context.impl.ContextReaderImpl;
import com.google.inject.ImplementedBy;

@ImplementedBy(ContextReaderImpl.class)
public interface ContextReader {

    String getMessage(String resourceMessage) throws NoSuchMessageException;

    String getMessage(String resourceMessage, Object[] args) throws NoSuchMessageException;

    String getMessage(MessageSourceResolvable resolvable) throws NoSuchMessageException;
}
